<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport"
	content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>用户中心</title>

<link rel="stylesheet" href="/skin/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="/admin/res/style.css">
<script src="/admin/res/jquery.min.js"></script>
<script src="/admin/res/cookie.js"></script>
<style>
.yc{display:none;}
</style>
</head>

<body class="indexbody">
	<div class="main-top">
		<a class="icon-menu"><i class="fa fa-list"></i></a>
		<div id="main-nav" class="main-nav">${deptname}</div>
		<div class="nav-right">
			<div class="info">
				<h4>
					<i class="fa fa-user-circle-o"></i>
				</h4>
				<span>${name}</span>
			</div>
			<div class="option">
				<i class="fa fa-chevron-down"></i>
				<div class="drop-wrap">
					<ul class="item">
						<li><a href="resetpwd.html" class="repwd" target="mainframe">修改密码</a>
						</li>
						<li><a id="lbtnExit">注销登录</a></li>
					</ul>
				</div>
			</div>
		</div>
	</div>

	<div class="main-left">
		<h1 class="logo">费用报销</h1>
		<div id="sidebar-nav" class="sidebar-nav">
			<div class="list-group" style="display: block;">
				<div class="list-wrap">
                     <ul id="navi"></ul>
				</div>
			</div>


		</div>
	</div>
<div class="title">
<div id="location"><a href="/index.shtml">首 页</a> </div>
</div>
	<div class="main-container win">
		<iframe id="mainframe" name="mainframe" frameborder="0"
			src="center.html"></iframe>
	</div>


	<script type="text/javascript">	
	$.ajax({
		//url : 'navigation/api/list',
		url:'/dg.json',
		type : 'get',
		async:false,
		dataType : 'json'
	}).done(function(data) {
		recursion(data);
		$('#navi').html(dgstr);
		$('#navi ul ul a b').remove();
		$('#navi > ul > ul > a').addClass('m');
	})



	
		$('#lbtnExit').click(function(event) {
			$.ajax({
				url : 'skin/tools/login.ashx?action=exist',
				type : 'get',
				dataType : 'json'
			}).done(function(data) {
				if (data.status == 1) {
					window.location.href = loginurl;
				} else {
					alert(data.msg);
				}
			})

		});
	</script>
	<!-- 需要在vue 加载后dom后，调用jquery -->
	<script type="text/javascript" charset="utf-8"	src="/admin/res/layindex.js"></script>
</body>
</html>